<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>7.过滤思想</title>
  </head>
  <body>
    <script type="text/javascript" >
      let cars = [
        {id:'asday01',brand:'北京奔驰',price:100},
        {id:'asday02',brand:'华晨宝马',price:120},
        {id:'asday03',brand:'雅迪',price:130},
        {id:'asday04',brand:'自行车',price:90}
      ]

      let x = cars.filter((item)=>{
        return item.name.includes('北')
      })
      console.log(x)
    </script>
  </body>
</html>